import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import NewEvent from '@/components/NewEvent'
import Enroll from '@/components/Enroll'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/event',
      name: 'NewEvent',
      component: NewEvent,
    },
    {
      path: '/:event/enroll',
      name: 'Enroll',
      component: Enroll,
    },
  ]
})
